package cn.car91.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * 维修店类
 *
 * @author 周海刚
 * @Date 2014.9.11
 */
public class RepairShop implements Serializable {
    private int rid;    //数据库主键
    private String id;    //网页标识，14位编码
    private String name;    //名称
    private String logo;    //Logo图片
    private String weixin;    //微信账号
    private Date regtime;    //入驻时间
    private long scan = 0;    //浏览次数
    private long commentcount = 0;    //评论数
    private long collectioncount = 0;    //收藏量
    private long goodcount = 0;    //好评度
    private Integer state = 1;    //管理员封停字段，0为黑名单曝光台，1为正常，2为封禁，3为待删
    private District district;    //所属区
    private Street street;//所属街道
    private Float lon;//经度
    private Float lat;//纬度
    private RepairShopDetail detail; //商家详情

    public RepairShop() {
    }

    public RepairShop(int rid, String id, String name,
                      String logo, String weixin,
                      Integer state) {
        this.id = id;
        this.rid = rid;
        this.name = name;
        this.logo = logo;
        this.weixin = weixin;
        this.state = state;
    }

    public RepairShop(int rid, String id, String name,
                      String logo, String weixin,
                      Integer state, Date regtime,
                      RepairShopDetail detail) {
        this.id = id;
        this.rid = rid;
        this.name = name;
        this.logo = logo;
        this.weixin = weixin;
        this.state = state;
        this.regtime = regtime;
        this.detail = detail;
    }

    public RepairShop(int rid, String id, String name,
                      String logo, String weixin,
                      Integer state, Date regtime,
                      District district) {
        this.id = id;
        this.rid = rid;
        this.name = name;
        this.logo = logo;
        this.weixin = weixin;
        this.state = state;
        this.regtime = regtime;
        this.district = district;
    }

    public RepairShop(int rid, String id, String name,
                      String logo, String weixin,
                      Integer state, Date regtime,
                      RepairShopDetail detail, District district) {
        System.out.println(detail.getAddress());
        this.id = id;
        this.rid = rid;
        this.name = name;
        this.logo = logo;
        this.weixin = weixin;
        this.state = state;
        this.regtime = regtime;
        this.district = district;
        this.detail = detail;
    }

    public int getRid() {
        return rid;
    }

    public void setRid(int rid) {
        this.rid = rid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getWeixin() {
        return weixin;
    }

    public void setWeixin(String weixin) {
        this.weixin = weixin;
    }

    public Date getRegtime() {
        return regtime;
    }

    public void setRegtime(Date regtime) {
        this.regtime = regtime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public District getDistrict() {
        return district;
    }

    public void setDistrict(District district) {
        this.district = district;
    }

    public RepairShopDetail getDetail() {
        return detail;
    }

    public void setDetail(RepairShopDetail detail) {
        this.detail = detail;
    }

    public Street getStreet() {
        return street;
    }

    public void setStreet(Street street) {
        this.street = street;
    }

    public long getScan() {
        return scan;
    }

    public void setScan(long scan) {
        this.scan = scan;
    }

    public long getCommentcount() {
        return commentcount;
    }

    public void setCommentcount(long commentcount) {
        this.commentcount = commentcount;
    }

    public long getCollectioncount() {
        return collectioncount;
    }

    public void setCollectioncount(long collectioncount) {
        this.collectioncount = collectioncount;
    }

    public long getGoodcount() {
        return goodcount;
    }

    public void setGoodcount(long goodcount) {
        this.goodcount = goodcount;
    }

    public Float getLon() {
        return lon;
    }

    public void setLon(Float lon) {
        this.lon = lon;
    }

    public Float getLat() {
        return lat;
    }

    public void setLat(Float lat) {
        this.lat = lat;
    }
}
